﻿
using Wpf2.ViewModels;

namespace Wpf2.Models
{
    public class User: PropertyChangedBase
    {
        private int _idUserAuto;
        private string _role;
        private string _username;
        private string _password;
        private int _idUser;

        public int UserIdAuto
        {
            get { return _idUserAuto; }
            set
            {
                if (_idUserAuto == value) return;
                _idUserAuto = value;
                OnPropertyChanged("UserIdAuto");
            }

        }
        public int UserId
        {
            get { return _idUser; }
            set
            {
                if (_idUser == value) return;
                _idUser = value;
                OnPropertyChanged("UserId");
            }

        }
        public string Role
        {
            get { return _role; }
            set
            {
                if (_role == value) return;
                _role = value;
                OnPropertyChanged("Role");
            }

        }

        public string UserName
        {
            get { return _username; }
            set
            {
                if (_role == value) return;
                _username = value;
                OnPropertyChanged("UserName");
            }

        }

        public string Password
        {
            get { return _password; }
            set
            {
                if (_password == value) return;
                _password = value;
                OnPropertyChanged("Password");
            }

        }
    }
}
